﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace DiscoveryLogic.Workflows.Monitor.Avalon
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        void ApplicationStartingUp(object sender, StartupEventArgs args)
        {
            MainWindow _window1 = new MainWindow();
            String windowArgs = string.Empty;
            if (args.Args.Length > 0 && args.Args[0] != null)
            {
                for (int i = 0; i < args.Args.Length; ++i)
                {
                    windowArgs = args.Args[i];
                    switch (i)
                    {
                        case 0: // Patient Id
                            patientId = windowArgs;
                            break;
                    }
                }
            }

            _window1.Show();
        }

        static string patientId = string.Empty;

        public static string PatientId
        {
            get { return patientId; }
            set { patientId = value; }
        }
    }
}
